[INFO] cloning repository https://github.com/Noskcaj19/rash
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Noskcaj19/rash" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoskcaj19%2Frash", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoskcaj19%2Frash'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d5c62c06e0266671b420296dc909fe0634d59391
[INFO] checking Noskcaj19/rash against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoskcaj19%2Frash" "/workspace/builds/worker-7/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Noskcaj19/rash on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Noskcaj19/rash
[INFO] finished tweaking git repo https://github.com/Noskcaj19/rash
[INFO] tweaked toml for git repo https://github.com/Noskcaj19/rash written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/Noskcaj19/rash already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 129235c7aa74fec30d4dc7bb78557c379cffcf04d6ea6242a4b486c1872cadbd
[INFO] running `Command { std: "docker" "start" "-a" "129235c7aa74fec30d4dc7bb78557c379cffcf04d6ea6242a4b486c1872cadbd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "129235c7aa74fec30d4dc7bb78557c379cffcf04d6ea6242a4b486c1872cadbd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "129235c7aa74fec30d4dc7bb78557c379cffcf04d6ea6242a4b486c1872cadbd", kill_on_drop: false }`
[INFO] [stdout] 129235c7aa74fec30d4dc7bb78557c379cffcf04d6ea6242a4b486c1872cadbd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a1300bde6db079a2eb00839b283129e189309475468d8042d117d2398fe0ec4d
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "a1300bde6db079a2eb00839b283129e189309475468d8042d117d2398fe0ec4d", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling cc v1.0.0
[INFO] [stderr]     Checking rustc-demangle v0.1.5
[INFO] [stderr]     Checking fs_extra v1.0.0
[INFO] [stderr]     Checking term_size v0.3.0
[INFO] [stderr]     Checking textwrap v0.8.0
[INFO] [stderr]     Checking clap v2.26.2
[INFO] [stderr]    Compiling backtrace-sys v0.1.14
[INFO] [stderr]     Checking backtrace v0.3.3
[INFO] [stderr]     Checking error-chain v0.11.0
[INFO] [stderr]     Checking rash v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead.
[INFO] [stdout]   --> src/lib.rs:34:24
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let mut path_buf = env::home_dir().chain_err(|| "unable to locate home directory")?;
[INFO] [stdout]    |                        ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/lib.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | /     error_chain! {
[INFO] [stdout] 18 | |         foreign_links {
[INFO] [stdout] 19 | |             Io(io::Error) #[doc = "Error during IO"];
[INFO] [stdout] 20 | |         }
[INFO] [stdout] 21 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead.
[INFO] [stdout]   --> src/lib.rs:34:24
[INFO] [stdout]    |
[INFO] [stdout] 34 |     let mut path_buf = env::home_dir().chain_err(|| "unable to locate home directory")?;
[INFO] [stdout]    |                        ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
[INFO] [stdout]   --> src/lib.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | /     error_chain! {
[INFO] [stdout] 18 | |         foreign_links {
[INFO] [stdout] 19 | |             Io(io::Error) #[doc = "Error during IO"];
[INFO] [stdout] 20 | |         }
[INFO] [stdout] 21 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/lib.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | /     error_chain! {
[INFO] [stdout] 18 | |         foreign_links {
[INFO] [stdout] 19 | |             Io(io::Error) #[doc = "Error during IO"];
[INFO] [stdout] 20 | |         }
[INFO] [stdout] 21 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `std::error::Error::cause`: replaced by Error::source, which can support downcasting
[INFO] [stdout]   --> src/lib.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | /     error_chain! {
[INFO] [stdout] 18 | |         foreign_links {
[INFO] [stdout] 19 | |             Io(io::Error) #[doc = "Error during IO"];
[INFO] [stdout] 20 | |         }
[INFO] [stdout] 21 | |     }
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/lib.rs:198:22
[INFO] [stdout]     |
[INFO] [stdout] 198 | pub fn put_back_item(item: &str, history: &History) {
[INFO] [stdout]     |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `history`
[INFO] [stdout]    --> src/lib.rs:198:34
[INFO] [stdout]     |
[INFO] [stdout] 198 | pub fn put_back_item(item: &str, history: &History) {
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/lib.rs:214:14
[INFO] [stdout]     |
[INFO] [stdout] 214 | pub fn trash(item: &str) {
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/lib.rs:198:22
[INFO] [stdout]     |
[INFO] [stdout] 198 | pub fn put_back_item(item: &str, history: &History) {
[INFO] [stdout]     |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `history`
[INFO] [stdout]    --> src/lib.rs:198:34
[INFO] [stdout]     |
[INFO] [stdout] 198 | pub fn put_back_item(item: &str, history: &History) {
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_history`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/lib.rs:214:14
[INFO] [stdout]     |
[INFO] [stdout] 214 | pub fn trash(item: &str) {
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `append_to_history`
[INFO] [stdout]   --> src/lib.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn append_to_history(entry: &FileEntry, path: &PathBuf) -> Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `trash_path`
[INFO] [stdout]   --> src/lib.rs:97:4
[INFO] [stdout]    |
[INFO] [stdout] 97 | fn trash_path(path: &PathBuf, trash_path: &PathBuf) -> Result<String> {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `add_history_entry`
[INFO] [stdout]    --> src/lib.rs:135:4
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn add_history_entry(original_path: &str, trashed_path: &str) -> Result<()> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `append_to_history`
[INFO] [stdout]   --> src/lib.rs:50:4
[INFO] [stdout]    |
[INFO] [stdout] 50 | fn append_to_history(entry: &FileEntry, path: &PathBuf) -> Result<()> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `trash_path`
[INFO] [stdout]   --> src/lib.rs:97:4
[INFO] [stdout]    |
[INFO] [stdout] 97 | fn trash_path(path: &PathBuf, trash_path: &PathBuf) -> Result<String> {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `add_history_entry`
[INFO] [stdout]    --> src/lib.rs:135:4
[INFO] [stdout]     |
[INFO] [stdout] 135 | fn add_history_entry(original_path: &str, trashed_path: &str) -> Result<()> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/main.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |         if let Err(error) = rash::trash(file) {
[INFO] [stdout]    |                ^^^^^^^^^^   ----------------- this expression has type `()`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected `()`, found enum `std::result::Result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `std::result::Result<_, _>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rash`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/bin/main.rs:70:16
[INFO] [stdout]    |
[INFO] [stdout] 70 |         if let Err(error) = rash::trash(file) {
[INFO] [stdout]    |                ^^^^^^^^^^   ----------------- this expression has type `()`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected `()`, found enum `std::result::Result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected unit type `()`
[INFO] [stdout]                    found enum `std::result::Result<_, _>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "a1300bde6db079a2eb00839b283129e189309475468d8042d117d2398fe0ec4d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a1300bde6db079a2eb00839b283129e189309475468d8042d117d2398fe0ec4d", kill_on_drop: false }`
[INFO] [stdout] a1300bde6db079a2eb00839b283129e189309475468d8042d117d2398fe0ec4d
